package com.wuyu.mini.dubbo.cluster;

import com.wuyu.mini.dubbo.cluster.config.Config;
import com.wuyu.mini.dubbo.cluster.loader.MiniExtensionLoader;

/**
 * 负载均衡工程
 */
public class LoadBalanceFactory {
    /**
     * 获取
     * @return
     */
    public static LoadBalance getLoadBalance() {
        String loadBalance = Config.Cluster.loadBalance;
        LoadBalance extension = MiniExtensionLoader.getExtensionLoader(LoadBalance.class).getExtension(loadBalance);
        return extension;
    }
}
